
#include "state.h"

int main(void)
{
    studytime *p_time = new studytime();

    int hour = 7;

    do
    {
        if (hour >= NIGHT)
        {
            p_time->setstudyprogress(true);
        }
        p_time->setcurtime(hour % 24);
        p_time->studystate();
        hour++;
    }while (hour % 24 != 0);

    if (p_time)
    {
        delete p_time;
        p_time = NULL;
    }

    return 0;
}

